<?php 
/*
 module:		用户列表验证器
 create_time:	2021-03-04 10:03:40
 author:		
 contact:		
*/

namespace app\admin\validate\Insurance;
use think\validate;

class InsuranceUsers extends validate {


	protected $rule = [
		'mobile'=>['require','unique:insurance_users','regex'=>'/^1[3456789]\d{9}$/'],
		'user_id'=>['unique:insurance_users'],
	];

	protected $message = [
		'mobile.require'=>'手机不能为空',
		'mobile.unique'=>'手机已经存在',
		'mobile.regex'=>'手机格式错误',
		'user_id.unique'=>'userid已经存在',
	];

	protected $scene  = [
	];



}

